<div id="indexcates">
<!--    <div class="top_nav">
        <h2>首页>><a href="">试题库</a>>></h2>
    </div>-->
        <div class="row-fluid"  >
            <ul class="breadcrumb">
                <li>
                        <?php
                $teacher_id = $_GET['tid'];
                $sql = "select * from ".DBPREFIX."member  where id =".$teacher_id;
                $result = $db -> query($sql);
                while($row=$db->fetch_array($result)){
                    echo $row['realname'].'老师的题库';
                }
        ?></li>
            </ul>
        </div>			
        <div class="exam_list">
                <table border="0" cellspacing="0" cellpadding="0" width="100%">
                    <thead>
                        <tr><th align="left" style="padding-left: 10px;">试题名称</th><th>考试时间</th><th>试题分数</th><th>难易程度</th><th>考试人数</th><th>操作</th></tr>
                    </thead>
                    <tbody>
                    <?php
                        $exam_sql = "select * from ".DBPREFIX."exam  where exam_pubuid =".$teacher_id." and type=0";
                        $exam_result = $db -> query($exam_sql);
                        while($exam_row=$db->fetch_array($exam_result)){
                    ?>
                        <tr valign="middle">
                            <td width="40%" style="padding-left: 10px;" ><a href="?do=exerciseinfo&id="<?php echo $exam_row['exam_id']?>><?php echo $exam_row['exam_name']?></a></td>
                            <td width="10%" align="center"><?php echo $exam_row['exam_time']?></td>
                            <td width="10%" align="center"><?php echo $exam_row['exam_score']?></td>
                            <td width="15%" align="center"><?php echo $exam_row['exam_diff']?></td>
                            <td width="10%" align="center"><?php echo $exam_row['exam_num']?></td>
                            <td width="15%" align="center" ><input type="button" onclick="gotest(<?php echo $exam_row['exam_id'];?> )" class="kaoshi" value="进入考试" /></td>
                        </tr>
                    <?php
                    }?>
                    </tbody>
                </table>  
    </div>
</div>
<script type="text/javascript">
    function gotest(examid){
        window.location.href = '?do=exerciseinfo&id='+examid;
    }
</script>